import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const wmStorage: AppRouteModule = {
  path: '/storage',
  name: 'wmStorage',
  component: LAYOUT,
  redirect: '/storage/inStoragList',
  meta: {
    orderNo: 19,
    icon: 'ant-design:bank-outlined',
    title: t('routes.demo.storage.manage'),
    roles: 'store,manage',
  },

  children: [
    // {
    //   path: 'inStoragList',
    //   name: 'inStoragList',
    //   component: () => import('@/views/store/inStorage/index.vue'),
    //   meta: {
    //     title: t('routes.demo.storage.inStorageList'),
    //     roles: 'store,manage',
    //
    //   },
    // },
    // {
    //   path: 'outStoragList',
    //   name: 'outStoragList',
    //   component: () => import('@/views/store/outStorage/index.vue'),
    //   meta: {
    //     title: t('routes.demo.storage.outStorageList'),
    //     roles: 'store,manage',
    //
    //   },
    // },
    {
      path: 'storageList',
      name: 'storageList',
      component: () => import('@/views/store/storageList/index.vue'),
      meta: {
        title: t('routes.demo.storage.storageList'),
        roles: 'store,manage',

      },
    },
    {
      path: 'analyseList',
      name: 'analyseList',
      component: () => import('@/views/store/analyseList/index.vue'),
      meta: {
        title: t('routes.demo.storage.analyseList'),
        roles: 'store,manage',

      },
    },
    // {
    //   path: 'categoryList',
    //   name: 'CategoryList',
    //   component: () => import('@/views/shop/categoryList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.shop.categoryList'),
    //   },
    // },
    // {
    //   path: 'orderList',
    //   name: 'OrderList',
    //   component: () => import('@/views/shop/orderList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.shop.orderList'),
    //   },
    // },


    // {
    //   path: 'request',
    //   name: 'RequestDemo',
    //   // @ts-ignore
    //   component: () => import('@/views/demo/excel/UploadDemo.vue'),
    //   meta: {
    //     title: t('routes.demo.feat.requestDemo'),
    //   },
    // },

  ],
};

export default wmStorage;
